package com.mycontract.suitepro.data

import androidx.core.text.isDigitsOnly

data class RevContractOrder(
    val code: String,
    val msg: String,
    val data: List<RevObjContractOrder>
) {
    fun isSuccess(): Boolean {
        if (code.isDigitsOnly()) {
            return code.toInt() == 0
        }
        return false
    }
}